﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models.Common
{
    public class CommandLogModel
    {
        /// <summary>
        /// 随机 guid
        /// </summary>
        public string guid { get; set; }
        public string d_guid { get; set; }
        /// <summary>
        /// 设备型号
        /// </summary>
        public string deviceModelCode { get; set; }
        /// <summary>
        /// 指令内容
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 指令key
        /// </summary>
        public string key { get; set; }
        /// <summary>
        /// 指令执行完成情况
        /// </summary>
        public string status_remark { get; set; }
        /// <summary>
        /// 执行人
        /// </summary>
        //public string user_name { get; set; }
        /// <summary>
        /// 执行人
        /// </summary>
        //public string user_guid { get; set; }
        /// <summary>
        /// 执 行人IP
        /// </summary>

        //public string user_remote_ip { get; set; }
        /// <summary>
        /// 0待执行,1处理中，2回调成功，3异常,4已发送mq,5mq发送失败
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 响应回传信息
        /// </summary>
        public string return_msg { get; set; }
        /// <summary>
        /// 网关ID
        /// </summary>
        public string gatewayCode{ get; set; }
        /// <summary>
        /// 网关设备guid
        /// </summary>
        public string gatewayDeviceGuid { get; set; }

       // public string dcl_table_guid { get; set; }
        /// <summary>
        /// 引脚位置
        /// </summary>
       // public string dcl_gpio_position { get; set; }
        /// <summary>
        /// 协议类型
        /// </summary>
        public string agreementType { get; set; }

        /// <summary>
        /// 网络连接 本地IP
        /// </summary>
        public string local_ip { get; set; }
        /// <summary>
        /// 网络连接 本地port
        /// </summary>
        public string local_port { get; set; }
        /// <summary>
        /// 备注，一般写设备名称
        /// </summary>
        public string device_remark { get; set; }
        /// <summary>
        /// 指令事件 MQEventEnum 类
        /// </summary>
        public string mqevent { get; set; }
        
        /// <summary>
        /// 指令来源
        /// </summary>
        public string source { get; set; }
        /// <summary>
        /// 心跳时间
        /// </summary>
        //public int intervalTime { get; set; }
        /// <summary>
        /// 心跳时间间隔
        /// </summary>
        //public string intervalUnit { get; set; }

        /// <summary>
        /// 一些配置参数
        /// </summary>
        public string parameter { get; set; }

        /// <summary>
        /// 重复次数 0无限，1以上次数
        /// </summary>
        public int repeatCount { get; set; }

        /// <summary>
        /// 重复次数间隔
        /// </summary>
        public int repeatCountInterval { get; set; }
        /// <summary>
        /// 重复次数间隔 单位，ss秒、mm分、hh时
        /// </summary>
        //public string executeCountIntervalUnit { get; set; }
        /// <summary>
        /// 发送时间
        /// </summary>
        //public DateTime executeTime { get; set; }
        /// <summary>
        /// 指令名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 指令组
        /// </summary>
        public string groupGuid { get; set; }
    }
}
